package com.tianji.promotion.service;

import com.tianji.promotion.domain.po.Coupon;
import com.tianji.promotion.domain.po.ExchangeCode;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 兑换码 服务类
 * </p>
 *
 * @author wxh
 * @since 2024-09-01
 */
public interface IExchangeCodeService extends IService<ExchangeCode> {

    /**
     * 生成兑换码
     *
     * @param coupon
     */
    void exchangeCode(Coupon coupon);

    /**
     * 修改兑换码的状态
     *
     * @param serialNum
     * @param mark 用来标记是否签到
     */
    boolean UpdateExchangeStyatus(long serialNum, boolean mark);
}
